//
// Created by wyh on 2025-08-14 23:16.
//

#ifndef TEST_FILE_DIRECTORY_H
#define TEST_FILE_DIRECTORY_H

#include <string>

namespace wyh {
    namespace fs {
        class Directory
        {
        public:
            Directory();
            Directory(const std::string &path);
            ~Directory() = default;

            //获取目录的路径
            std::string path() const;

        public:
            //获取路径分隔符： windows =‘\’,linux = '/'
            static char separator();
            static bool is_absolute_path(const std::string &path);
            static std::string normalize_path(const std::string &path);
            static std::string adjust_path(const std::string &path);

        private:
            std::string m_path;
        };
    } // namespace fs
} // namespace wyh

#endif //TEST_FILE_DIRECTORY_H
